$(document).ready(function () {
    var socket = io()
    socket.on('connect',function () {
        socket.send('客户端已连接')
    });
   $('form#joinRoom').submit(function (event){
       socket.emit('joinRoom', {
           room:$('#roomNum').val()
       })
        return false
    });

})